﻿using System.Text;

namespace ChatServer
{
	class MessageChat
	{
		public string sSender {get; set;}
		public string sReceive{get; set;}
		public string sFont{get; set;}
		public string sCharacterSet{get; set;}
		public int iMessageLength { get; set; }
		public byte[] sContent { get; private set; }

		public void SetContent( string pContent)
		{
			sContent = Encoding.UTF8.GetBytes(pContent);
		}

		public string ReadContent()
		{
			return Encoding.UTF8.GetString(sContent);
		}
	}
}
